package services

import (
	"aiserver/pkg/store"
)

type Service interface {
	Users() UserSrv
	Storage() StorageSrv
}
type service struct {
	store store.Factory
}

// NewService returns Service interface.
func NewService(store store.Factory) Service {
	return &service{
		store: store,
	}
}

func (s *service) Users() UserSrv {
	return newUsers(s)
}

func (s *service) Storage() StorageSrv {
	return newStorage(s)
}
